home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-1.iso / Files / Util / M / MacDOS 3.0.sit / MacDOS 3.0 ƒ / executables / MacDOS 3.0.rsrc / TEXT_149_IF.txt < prev    next >
Encoding:
Text File  |  1995-04-09  |  903 b   |  17 lines

  1. Performs conditional processing in batch.
  2.  
  3. IF [NOT] {string1==string2 | EXIST filename | EXISTDIR name} {command | prog}
  4.  
  5.   NOT               negates the condition.
  6.   string1, string2  can contain replaceable parameters and global variables.
  7.   EXIST filename    is true if the specified file exists. 'filename' can be
  8.                     wildcarded and preceded by a volume and path spec. If
  9.                     'filename' identifies a directory, the condition is not
  10.                     satisfied.
  11.   EXISTDIR name     is true if the specified directory exists. 'name' can be
  12.                     preceded by a volume and path spec. If 'name' identifies a
  13.                     file, the condition is not satisfied.
  14.   command           is the command to be executed if the condition is satisfied.
  15.   prog              identifies the program to be executed if the condition is
  16.                     satisfied.
  17.